<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="Author" content="${systemConfig.systemName} Team" />
<meta name="Copyright" content="${systemConfig.systemName}" />
<title>查看订单 - Powered By ${systemConfig.systemName}</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/admin/css/input.css" rel="stylesheet" type="text/css" />
</head>
<body class="input">
	<div class="body">
		<div class="inputBar">
			<h1><span class="icon">&nbsp;</span>查看订单</h1>
		</div>
		<div class="blank"></div>
		
		<div id="print_div">
		<table  width="100%" >
			
			
			<tr height="50px;" style="border-top:3px black dashed ;border-bottom:3px black dashed ;">
				<th  align="left">
					订单编号:${order.orderSn}
				</th>
				<td>
					
				</td>
				<th  align="left">
					下单时间:${order.createDate?string("yyyy-MM-dd HH:mm:ss")}
				</th>
				<td>
					
				</td>
			</tr>
			
			
		</table>
		
		<table width="100%">
			<tr height="50px;" >
			<td>
				<table width="100%">
					<tr  height="30px;">
					<th align="left">
						排号:${(memberShili.paihao)!}
					</th>
					<th>
						姓名:${(memberShili.xingming)!}
					</th>
					
					<th>
						手机号:${(memberShili.shouji)!}
					</th>
					
					<th>
						验光单号:${(memberShili.yanguangNo)!}
					</th>
					
				</tr>
				</table>
				<table width='100%'>
				<tr height="30px;">
					<th width='9%'>
						&nbsp;
					</th>
					<th width='9%'> 
						球镜
						SPH
					</th>
					<th width='9%'> 
						柱镜
						CYL
					</th>
					<th width='9%'> 
						轴位
					</th>
					<th width='9%'> 
						裸眼视力
					</th>
					<th width='9%'> 
						矫正视力
					</th>
					<th width='9%'> 
						主导眼
					</th>
					
					<th width='9%'> 
						棱镜
					</th>
					
					<th width='9%'> 
						基底
					</th>
					
					<th width='9%'> 
						瞳高
					</th>
					<th width='9%'> 
						下加光
					</th>
					
				</tr>
				
				<tr height="30px;">
					<th>
						R
					</th>
					<td>
						${(memberShili.rsph)!}
					</td>
					<td>
						${(memberShili.rcyl)!}
					</td>
					<td>
						${(memberShili.rax)!}
					</td>
					<td>
						${(memberShili.rlysl)!}
					</td>
					<td>
						${(memberShili.rjzsl)!}
					</td>
					<td>
						${(memberShili.rde)!}
					</td>
					
					<td>
						${(memberShili.rp)!}
					</td>
					
					<td>
						${(memberShili.rbase)!}
					</td>
					
					<td>
						${(memberShili.rph)!}
					</td>
					<td>
						${(memberShili.radd)!}
					</td>
					
				</tr>
				
				<tr height="30px;">
					<th>
						L
					</th>
					<td>
						${(memberShili.lsph)!}
					</td>
					<td>
						${(memberShili.lcyl)!}
					</td>
					<td>
						${(memberShili.lax)!}
					</td>
					<td>
						${(memberShili.llysl)!}
					</td>
					<td>
						${(memberShili.ljzsl)!}
					</td>
					<td>
						${(memberShili.lde)!}
					</td>
					
					<td>
						${(memberShili.lp)!}
					</td>
					
					<td>
						${(memberShili.lbase)!}
					</td>
					
					<td>
						${(memberShili.lph)!}
					</td>
					<td>
						${(memberShili.ladd)!}
					</td>
					
				</tr>
				
				
				</table>
				<table width="100%">
				<tr height="30px;">
					<th align="left">
						验光师:${(memberShili.shiguangshi)!}
					</th>
					
					<th align="left">
						瞳距:${(memberShili.tongju)!}
					</th>
					
					<th align="left">
						顾客签名:${(memberShili.customerName)!}
					</th>
					
					
				</tr>
				</table>
				</td></tr>
		</table>
		
		<table width="100%" align="center">
		
			<tr  style="border-top:3px black dashed ;" height="50px;">
				<th>货号</th>
				<th>商品名称</th>
				<th>购买数量</th>
				<th>市场价</th>
				<th>价格</th>
				
			</tr>
			<#list order.orderItemSet as list>
				<tr height="30px;" align="center">
					<td>
							${list.productSn}
					</td>
					<td>
							${list.productName}
					</td>
					<td>
						${list.productQuantity}
					</td>
					<td>
						${list.product.marketPrice?string(priceUnitCurrencyFormat)}
					</td>
					<td>
						${list.productPrice?string(priceUnitCurrencyFormat)}
					</td>
					
				</tr>
			</#list>
			
			<tr height="50px;" style="border-top:3px black dashed ;border-bottom:3px black dashed ;" >
			<th  align="left">
					深圳李白视界
				</th>
				<th  align="left">
					
				</th>
				<td>
					其他费用:<span id="productTotalPrice" class="red">${0.00?string(orderUnitCurrencyFormat)}</span>
				</td>
				<th  align="left">
					订单总金额:<span id="totalAmount" class="red">${order.totalAmount?string(orderUnitCurrencyFormat)}</span>&nbsp;&nbsp;
				</th>
				<td  align="left">
					实收金额:<span id="totalAmount" class="red">${order.totalAmount?string(orderUnitCurrencyFormat)}</span>&nbsp;&nbsp;
					
				</td>
			</tr>
		</table>
		
		</div>
		<div class="buttonArea">
			<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
			
			<input type="button" class="formButton" onclick="PrintGridView(); return false;" value="打  印" hidefocus="true" />
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
        function PrintGridView() {
            // 打开一个新网页
            //var newwindow = window.open('printer','','');

            // 将指定DIV中的内容写入该网页
            //newwindow.document.write('<html><body>'+document.getElementById('print_div').innerHTML+'</body></html>');
            
            //alert(document.getElementById('print_div').innerHTML);
            //newwindow.document.close();

            // 打印该网页
            //newwindow.focus();
            //newwindow.print();

            // 打印完毕后关闭该窗口
            //newwindow.close();
            //return;
           
           document.body.innerHTML=document.getElementById('print_div').innerHTML;
		   window.print();
           
        }
  </script>
 
